class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age
        self.__sex = "男"

    def show(self):
        print(self.name, self.age, self.__sex)

    def get_sex(self):
        return self.__sex


# zs = Person("张三", 20)
# zs.show()
# print(zs.__sex)
# print(zs._Person__sex)
# print(zs.get_sex())


class Student(Person):
    def __init__(self, name, age, score, __sex):
        super().__init__(name, age,__sex)
        self.score = score


    def show(self):
        print(self.name, self.age, self.score, self.__sex)


stu = Student("张三", 20, 100, "女")
stu.show()
